import request from "../utils/request";
import qs from 'querystring'

//获取门店信息（包括店铺和充电站）
export const findAll = (val?:any) =>{
    const data = qs.stringify(val)
    return request({
        url:`/gen/shop/findAll?${data}`,
        method:'get'
    })
}

//检测门店警告时效
export const findlast = (val?:any) =>{
    const data = qs.stringify(val)
    return request({
        url:`/gen/warn/findlast?${data}`,
        method:'get'
    })
}

//获取警告信息
export const getWarnData = (val?:any) =>{
    const data = qs.stringify(val)
    return request({
        url:`/gen/warn?${data}`,
        method:'get'
    })
}


//修改门店状态
export const setShopType = (data:any) =>{
    return request({
        url:`/gen/shop`,
        method:'put',
        data
    })
}